package com.itheima.freemarker.pojo;

public class TesetTTT {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.setName("zhangsan");
        s1.setAge("18");
        Student s2 = new Student();
        s2.setName("zhangsan");
        s2.setAge("18");
        System.out.println(s1.equals(s2));

        String str1=new String("aaa");
        String str2=new String("aaa");
        System.out.println(str1.equals(str2));


        Integer i1 = new Integer("1");
        Integer i2 = new Integer("1");
        System.out.println(i1==i2);
        System.out.println(i1.equals(i2));

        System.out.println("---------------");//自动装箱  -128 -  127
        Integer i3 = 128;
        Integer i4 = 128;
        System.out.println(i3==i4);
        System.out.println(i3.equals(i4));
    }
}
